//提示
export function waring(msg){
  wx.showModal({
    title: '提示',
    content: msg,
    showCancel:false,
    success(res) {
    }
  })
}
//成功反馈
export function success(msg){
  wx.showModal({
    title: '提示',
    content: msg == undefined || msg == null || msg === '' ? '操作成功':msg,
    showCancel:false,
    success(res) {
    }
  })
}
//获取定位失败
export function failLocation(){
  wx.showToast({
    mask:true,
    title: '获取定位失败',
    icon: 'error',
    duration: 2000
  })
}

module.exports = {//暴露接口调用
  waring:waring,
  success:success,
  failLocation:failLocation
}